'use strict'

/***
 ** sessionStorage
***/
export default {
	get(key) {
		return localStorage.getItem(key);
	},

	set(key, val) {
		localStorage.setItem(key, val);
	},

	remove(key) {
		localStorage.removeItem(key);
	},

	removeAll() {
		localStorage.clear();
	},

	getRoleMode() {
		return localStorage.getItem('role-mode');
	},

	setRoleMode(val) {
		localStorage.setItem('role-mode', val);
	},

	getApiAccessToken() {
		return localStorage.getItem('Api-Access-Token');
	},

	setApiAccessToken(val) {
		localStorage.setItem('Api-Access-Token', val);
	},

	removeApiAccessToken() {
		localStorage.removeItem('Api-Access-Token');
	}

}